import http from '../utils/request';

const { post } = http('admin');

// 获取文章类型列表--分页获取
export const getCategoryList = params => post('/web/article/category', params);
// 获取文章类型列表--获取全部
export const getCategoryAll = params => post('/web/article/getCategory', params);
// 新增文章类型
export const categoryAdd = params => post('/web/article/categoryAdd', params);
// 编辑文章类型
export const categoryEdit = params => post('/web/article/categoryEdit', params);


// 获取文章类型列表--分页获取
export const getArticleList = params => post('/web/article/list', params);
// 新建文章
export const createArticle = params => post('/web/article/create', params);
// 编辑文章
export const editArticle = params => post('/web/article/edit', params);
// 删除文章
export const delArticle = params => post('/web/article/del', params);
// 获取文章详情
export const getArticleById = params => post('/web/article/detail', params);

